<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>train_ticket</title>
    <style>
        /*h1{*/
            /*margin-left: 300px;*/
        /*}*/
        /*h3{*/
            /*margin-left: 250px;*/
        /*}*/
    </style>
</head>
<body>
<center>
    <h1>火车票信息</h1>
    <h3>出发站:{{ train_start }}&nbsp;&nbsp;&nbsp;&nbsp;到达站:{{train_arrive}}</h3>


    <table border="1" style="border-collapse: collapse">
        <tr>
        <th>出发站</th>
        <th>到达站</th>
        <th>车次</th>
        <th>出发时间</th>
        <th>到达时间</th>
        <th>历时</th>
        <th>软卧</th>
        <th>特等座</th>
        <th>无座</th>
        <th>硬卧</th>
        <th>硬座</th>
        <th>二等座</th>
        <th>一等座</th>
        </tr>
        {% for i in train %}
        <tr>
            <td>{{ train_start }}</td>
            <td>{{ train_arrive }}</td>
            <td>{{ i.3 }}</td>
            <td>{{ i.8 }}</td>
            <td>{{ i.9 }}</td>
            <td>{{ i.10 }}</td>
            <td>{{ i.23 }}</td>
            <td>{{ i.25 }}</td>
            <td>{{ i.26 }}</td>
            <td>{{ i.28 }}</td>
            <td>{{ i.29 }}</td>
            <td>{{ i.30 }}</td>
            <td>{{ i.31 }}</td>
        </tr>
        {% endfor%}
    </table>


    <a href="{% url "login" %}" >登录12306</a>
</center>
</body>
</html>